package com.example.shiwuyouproject.ui.fragment.my.activity.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.shiwuyouproject.R
import com.example.shiwuyouproject.ui.my.bean.DataX
import com.example.shiwuyouproject.utils.GlideUtils

class MyIncomeAdapter(var context: Context):BaseQuickAdapter<DataX,BaseViewHolder>(R.layout.item_myincome) {
    override fun convert(helper: BaseViewHolder?, item: DataX?) {
            GlideUtils.headPortrait(context, helper?.getView(R.id.profile_image)!!,item?.avatar!!)
            helper.setText(R.id.tvName,item.user_name)
                .setText(R.id.tvKeMu,item.base_name)
                .setText(R.id.tvShouKeShiJian, item.start_time +"-"+item.end_time)
                .setText(R.id.tvTime,item.create_time)
                .setText(R.id.tvMoney,"+"+item.amount)
    }
}